<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>menu</title>
    <link rel="stylesheet" href="/static/admin/lib/layui-v2.6.3/css/layui.css" media="all">
    <link rel="stylesheet" href="/static/admin/css/public.css" media="all">
    <style>
        .layui-btn:not(.layui-btn-lg ):not(.layui-btn-sm):not(.layui-btn-xs) {
            height: 34px;
            line-height: 34px;
            padding: 0 8px;
        }
        .layui-form-item .layui-input-company {width: auto;padding-right: 10px;line-height: 38px;}
    </style>
</head>
<div class="layuimini-container">
    <div class="layuimini-main">
        <form action="" method="post" id="DataForm">
            <div class="layui-tab layui-tab-brief" lay-filter="itemTab">
                <ul class="layui-tab-title">
                    <li lay-id="itemTab_1" class="layui-this">基本设置</li>
                </ul>
                <div class="layui-tab-content">
                    <div class="layui-tab-item layui-show">
                        <div class="layui-form-item">
                            <label class="layui-form-label required">平台名称</label>
                            <div class="layui-input-block">
                                <input type="text" name="PLATFORM_NAME" lay-verify="required" lay-reqtext="平台名称"
                                    placeholder="请输入平台名称" value="{:wconfig('PLATFORM_NAME')}" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label required">app版本</label>
                            <div class="layui-input-block">
                                <input type="text" name="APP_VERSION" lay-verify="required" lay-reqtext="app版本"
                                    placeholder="请输入app版本" value="{:wconfig('APP_VERSION')}" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label required">微信</label>
                            <div class="layui-input-block">
                                <input type="text" name="WECHAT" lay-verify="required" lay-reqtext="微信"
                                    placeholder="请输入微信" value="{:wconfig('WECHAT')}" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label required">微博</label>
                            <div class="layui-input-block">
                                <input type="text" name="MICRO_BLOG" lay-verify="required" lay-reqtext="微博"
                                    placeholder="请输入微博" value="{:wconfig('MICRO_BLOG')}" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label required">电话</label>
                            <div class="layui-input-block">
                                <input type="text" name="PHONE" lay-verify="required" lay-reqtext="电话"
                                    placeholder="请输入电话" value="{:wconfig('PHONE')}" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label required">意见反馈</label>
                            <div class="layui-input-block">
                                <input type="text" name="FEEDBACK" lay-verify="required" lay-reqtext="意见反馈"
                                    placeholder="请输入意见反馈" value="{:wconfig('FEEDBACK')}" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label required">商务合作</label>
                            <div class="layui-input-block">
                                <input type="text" name="COOPERATION" lay-verify="required" lay-reqtext="商务合作"
                                    placeholder="请输入商务合作" value="{:wconfig('COOPERATION')}" class="layui-input">
                            </div>
                        </div>
                        
                    </div>
        
        


        
                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            <button class="layui-btn layui-btn-normal" id="saveButton">确认保存</button>
                        </div>
                    </div>

                </div>
            </div>
        </form>
    </div>
</div>
    

</html>
<script src="/static/admin/lib/layui-v2.6.3/layui.js" charset="utf-8"></script>
<script src="/static/admin/js/lay-config.js?v=1.0.4" charset="utf-8"></script>
<script type="text/javascript">
    var mp3;
    layui.use(['layer','wangEditor','upload'], function () {
        var $ = layui.jquery,
            layer = layui.layer,
            wangEditor = layui.wangEditor;
            upload = layui.upload;

      

        $("#saveButton").on('click', function () {
            var loading = layer.open({ type: 3 });
            var data = $("#DataForm").serialize()
            data = data;
            $.ajax({
                url: "{:url('index')}",
                type: 'post',
                data:data,dataType: "json",
                contentType: "application/x-www-form-urlencoded; charset=UTF-8",
                success: function (data) {
                    layer.close(loading);
                    // if (data.code == 0) {
                    //     parent.tableReload();
                    //     parent.layer.close(indexFrame);
                    //     parent.layer.msg(data.msg);
                    // } else {
                    //     layer.msg(data.msg);
                    // }
                }
            })
            return false;
        })
        upload.render({
                elem: '#upload_STORE_AUDIO_1', url: "{:url('common/images')}",accept: 'audio', done: function (res) {
                        $("#STORE_AUDIO_1").val(res.data.name);
                        layer.msg(res.msg);
                }
        });
   
        $("#closeButton").on('click', function () {
            parent.layer.close(indexFrame);
        })

           
    
        

        mp3 = function(){
            var player = new Audio();
            player.play();
        }
      
      
    });
</script>